package com.njtoyo.taxi.admin.mapper.master.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.njtoyo.taxi.admin.mapper.master.enums.RideOrderPaidThrough;
import com.njtoyo.taxi.admin.mapper.master.enums.RideOrderState;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author Dell
 * @since 2021-09-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "CancellationOrder对象", description = "")
public class CancellationOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long cancelId;

    private Long userId;

    private String number;

    private String outTradeNumber;

    private RideOrderPaidThrough paidThrough;

    private BigDecimal amount;

    private RideOrderState state;

    private Boolean refunded;

    @ApiModelProperty(value = "实际支付金额")
    private BigDecimal farePaid;

    @ApiModelProperty(value = "余额付款")
    private BigDecimal balancePaid;

    private Date createdAt;

    private Date updatedAt;

    @ApiModelProperty(value = "支付时间")
    private Date lastPayTime;


}
